//
//  SINAStuActiviAddItemTableViewCell.m
//  sinashebao
//
//  Created by  androidlongs on 2018/1/19.
//  Copyright © 2018年  androidlongs. All rights reserved.
//

#import "SINAStuActiviAddItemTableViewCell.h"

@interface SINAStuActiviAddItemTableViewCell()

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

@implementation SINAStuActiviAddItemTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    
}


-(void)setModel:(SINAStuActivityAddItemModel *)model{
    _model = model;
    
    NSString *title = model.title;
    self.titleLabel.text = title;
    
    if (model.isSelect) {
        self.titleLabel.textColor = baseSelectColor;
    } else {
        self.titleLabel.textColor =[UIColor colorWithHexString:@"#373737"];
    }
    
    [[SINAUiviewClickLiserner alloc]viewClickFunction:self.contentView andWithBlick:^(UIView *view) {
        if (self.clickBlock) {
            self.clickBlock(self.model,self.pos);
        }
    }];
    
}

@end
